﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
	CodeBehind="Register.aspx.cs" Inherits="HoneyBadgersOfficePlayer.Views.Register" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
	<asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="False" 
		OnCreatedUser="RegisterUser_CreatedUser">
		<LayoutTemplate>
			<asp:PlaceHolder ID="wizardStepPlaceholder" runat="server"></asp:PlaceHolder>
			<asp:PlaceHolder ID="navigationPlaceholder" runat="server"></asp:PlaceHolder>
		</LayoutTemplate>
		<WizardSteps>
			<asp:CreateUserWizardStep ID="RegisterUserWizardStep" runat="server">
				<ContentTemplate>
					<h2>
						Create a New Account
					</h2>
					<p>
						Use the form below to create a new account.
					</p>
					<p>
						Passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length.
					</p>
					<span class="failureNotification">
						<asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
					</span>
					<asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification" 
						 ValidationGroup="RegisterUserValidationGroup"/>
					<div class="accountInfo">
						<fieldset class="register">
							<legend>Account Information</legend>
							<p>
								<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Choose your username</asp:Label>
								<asp:TextBox ID="UserName" runat="server" CssClass="textEntry" TabIndex="1"></asp:TextBox>
								<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
									 CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
									 ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
							</p>
							<p>
								<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Type your email address</asp:Label>
								<asp:TextBox ID="Email" runat="server" CssClass="textEntry" TabIndex="2"></asp:TextBox>
								<asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email" 
									 CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="E-mail is required." 
									 ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
							</p>
							<p>
								<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Choose your password</asp:Label>
								<asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password" TabIndex="3"></asp:TextBox>
								<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
									 CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
									 ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
							</p>
							<p>
								<asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm your password</asp:Label>
								<asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password" TabIndex="4"></asp:TextBox>
								<asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" CssClass="failureNotification" Display="Dynamic" 
									 ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired" runat="server" 
									 ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
								<asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
									 CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
									 ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
							</p>
							<p>
							<div class="right">
							  <asp:Label ID="LastLabel" runat="server" AssociatedControlID="Last">Enter your Last Name</asp:Label>
								<asp:TextBox ID="Last" runat="server" CssClass="NameEntry" TabIndex="6"></asp:TextBox>
								<asp:RequiredFieldValidator ID="LastRequired" runat="server" ControlToValidate="Last"
									CssClass="failureNotification" ErrorMessage="Last Name is required." ToolTip="Last Name is Required."
									ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
						   </div>
						   <div class="padding">
								<asp:Label ID="FirstLabel" runat="server" AssociatedControlID="First">Enter your First Name</asp:Label>
								<asp:TextBox ID="First" runat="server" CssClass="NameEntry" TabIndex="5"></asp:TextBox>
								<asp:RequiredFieldValidator ID="FirstRequired" runat="server" ControlToValidate="First"
									CssClass="failureNotification" ErrorMessage="First Name is required." ToolTip="First Name is Required."
									ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
							</div>
							
							<div class="padding">    
								<asp:Label ID="AddressLabel" runat="server" AssociatedControlID="Address">Enter your address</asp:Label>
								<asp:TextBox ID="Address" runat="server" CssClass="textEntry" TabIndex="7"></asp:TextBox>
								<asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="Address"
									CssClass="failureNotification" ErrorMessage="Address is required." ToolTip="Address is Required."
									ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
							</div>
							</p>
							<p>
							<div class="rightzip">
								<asp:Label ID="ZipLabel" runat="server" AssociatedControlID="Zip">Enter your Zip Code</asp:Label>
								<asp:TextBox ID="Zip" runat="server" CssClass="ZipEntry" TabIndex="10"></asp:TextBox>
								<asp:RequiredFieldValidator ID="ZipRequired" runat="server" ControlToValidate="Zip"
									CssClass="failureNotification" ErrorMessage="Zip is required." ToolTip="Zip is Required."
									ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>

						   </div>
						   <div class="" style="float:left; margin:auto auto auto 10px;">
									
								<asp:Label ID="CityLabel" runat="server" AssociatedControlID="City">City</asp:Label>
								<asp:TextBox ID="City" runat="server" CssClass="smallEntry" TabIndex="8"></asp:TextBox>
								<asp:RequiredFieldValidator ID="CityRequired" runat="server" ControlToValidate="City"
									CssClass="failureNotification" ErrorMessage="City is required." ToolTip="City is Required."
									ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator> 
						   
						   </div>                      
	
																		 
							 <div class="state">
								<asp:Label ID="StateLabel" runat="server" AssociatedControlID="State">State</asp:Label>
								<asp:DropDownList ID="State" runat="server" CssClass="state" TabIndex="9">
									<asp:ListItem Value="AL">Alabama</asp:ListItem>
									<asp:ListItem Value="AK">Alaska</asp:ListItem>
									<asp:ListItem Value="AZ">Arizona</asp:ListItem>
									<asp:ListItem Value="AR">Arkansas</asp:ListItem>
									<asp:ListItem Value="CA">California</asp:ListItem>
									<asp:ListItem Value="CO">Colorado</asp:ListItem>
									<asp:ListItem Value="CT">Connecticut</asp:ListItem>
									<asp:ListItem Value="DC">District of Columbia</asp:ListItem>
									<asp:ListItem Value="DE">Delaware</asp:ListItem>
									<asp:ListItem Value="FL">Florida</asp:ListItem>
									<asp:ListItem Value="GA">Georgia</asp:ListItem>
									<asp:ListItem Value="HI">Hawaii</asp:ListItem>
									<asp:ListItem Value="ID">Idaho</asp:ListItem>
									<asp:ListItem Value="IL">Illinois</asp:ListItem>
									<asp:ListItem Value="IN">Indiana</asp:ListItem>
									<asp:ListItem Value="IA">Iowa</asp:ListItem>
									<asp:ListItem Value="KS">Kansas</asp:ListItem>
									<asp:ListItem Value="KY">Kentucky</asp:ListItem>
									<asp:ListItem Value="LA">Louisiana</asp:ListItem>
									<asp:ListItem Value="ME">Maine</asp:ListItem>
									<asp:ListItem Value="MD">Maryland</asp:ListItem>
									<asp:ListItem Value="MA">Massachusetts</asp:ListItem>
									<asp:ListItem Value="MI">Michigan</asp:ListItem>
									<asp:ListItem Value="MN">Minnesota</asp:ListItem>
									<asp:ListItem Value="MS">Mississippi</asp:ListItem>
									<asp:ListItem Value="MO">Missouri</asp:ListItem>
									<asp:ListItem Value="MT">Montana</asp:ListItem>
									<asp:ListItem Value="NE">Nebraska</asp:ListItem>
									<asp:ListItem Value="NV">Nevada</asp:ListItem>
									<asp:ListItem Value="NH">New Hampshire</asp:ListItem>
									<asp:ListItem Value="NJ">New Jersey</asp:ListItem>
									<asp:ListItem Value="NM">New Mexico</asp:ListItem>
									<asp:ListItem Value="NY">New York</asp:ListItem>
									<asp:ListItem Value="NC">North Carolina</asp:ListItem>
									<asp:ListItem Value="ND">North Dakota</asp:ListItem>
									<asp:ListItem Value="OH">Ohio</asp:ListItem>
									<asp:ListItem Value="OK">Oklahoma</asp:ListItem>
									<asp:ListItem Value="OR">Oregon</asp:ListItem>
									<asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
									<asp:ListItem Value="RI">Rhode Island</asp:ListItem>
									<asp:ListItem Value="SC">South Carolina</asp:ListItem>
									<asp:ListItem Value="SD">South Dakota</asp:ListItem>
									<asp:ListItem Value="TN">Tennessee</asp:ListItem>
									<asp:ListItem Value="TX">Texas</asp:ListItem>
									<asp:ListItem Value="UT">Utah</asp:ListItem>
									<asp:ListItem Value="VT">Vermont</asp:ListItem>
									<asp:ListItem Value="VA">Virginia</asp:ListItem>
									<asp:ListItem Value="WA">Washington</asp:ListItem>
									<asp:ListItem Value="WV">West Virginia</asp:ListItem>
									<asp:ListItem Value="WI">Wisconsin</asp:ListItem>
									<asp:ListItem Value="WY">Wyoming</asp:ListItem>
								</asp:DropDownList>
								<asp:RequiredFieldValidator ID="StateRequired" runat="server" ControlToValidate="State"
									CssClass="failureNotification" ErrorMessage="State is required." ToolTip="State is Required."
									ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
							</div>
							</p>

										   
						 
							 <p>
								<asp:Label ID="ExplicitLabel" runat="server" AssociatedControlID="Explicit">Block Explicit music?</asp:Label>
								<asp:CheckBox ID="Explicit" runat="server" AutoPostBack="false"></asp:CheckBox>
							</p>
							
							 <p>
								<asp:Label ID="EULA_Text" runat="server" AssociatedControlID="EULA_Text">EULA Agreement</asp:Label>
								<asp:TextBox ID="EULA_Textbox" Height="90px" Width="800px"  TextMode="MultiLine" style="resize:none;"
                                   runat="server"  ReadOnly="true" ViewStateMode="Inherit" EnableTheming="True" ></asp:TextBox>                              
                                <asp:Label ID="EULA" runat="server" AssociatedControlID="EULA">I Agree</asp:Label>
								<asp:CheckBox ID="EULA_Check" runat="server" CausesValidation="True" Checked="False" AutoPostBack="False"></asp:CheckBox>
							</p>
                            
							
						</fieldset>
						<div class="submitButton">
							<asp:Button ID="CreateUserButton" runat="server" CommandName="MoveNext" Text="Create User" 
								 ValidationGroup="RegisterUserValidationGroup" OnServerClick="CreateUserButton_Click" Visible="true" />                    
							<asp:Button ID="Cancel" runat="server" CommandName="MoveBack" Text="Cancel" 
								 ValidationGroup="RegisterUserValidationGroup" OnServerClick="CreateUserButton_Click"/>
						</div>
					</div>
				</ContentTemplate>
				<CustomNavigationTemplate>
				</CustomNavigationTemplate>
			</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
	<ContentTemplate>
		<table>
			<tr>
				<td align="center" colspan="2">
					Complete</td>
			</tr>
			<tr>
				<td>
					Your account has been successfully created.</td>
			</tr>
			<tr>
				<td align="right" colspan="2">
					<asp:Button ID="ContinueButton" runat="server" CausesValidation="False" 
						CommandName="Continue" Text="Continue" ValidationGroup="RegisterUser" />
				</td>
			</tr>
		</table>
	</ContentTemplate>
			</asp:CompleteWizardStep>
		</WizardSteps>
	</asp:CreateUserWizard>
</asp:Content>
